package pl.enigmatic.parser.xml;

import pl.enigmatic.util.XML;


public class ConversionParser<T> extends Parser<T> {

	protected ConversionParser(Class<T> cls) {
		super(cls, false);
	}

	@Override
	public T createInstance(final ParsingInfo<T> info) {
		return convert(XML.getText(info.getNode().getFirstChild()), null);
	}

}
